home *** CD-ROM | disk | FTP | other *** search
-
-
-
- AAAALLLLggggeeeettttffffdddd((((3333ddddmmmm)))) AAAALLLLggggeeeettttffffdddd((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- ALgetfd - (obsolete) get the file descriptor for an audio port
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiioooo....hhhh>>>>
-
- iiiinnnntttt AAAALLLLggggeeeettttffffdddd((((AAAALLLLppppoooorrrrtttt ppppoooorrrrtttt))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _p_o_r_t expects the AAAALLLLppppoooorrrrtttt structure whose file descriptor you desire.
- This structure is the returned value of an AAAALLLLooooppppeeeennnnppppoooorrrrtttt((((3333ddddmmmm)))) call.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- AAAALLLLggggeeeettttffffdddd is obsolete and is provided for backward compatibility. The
- preferred function is aaaallllGGGGeeeettttFFFFDDDD((((3333ddddmmmm)))).
-
- AAAALLLLggggeeeettttffffdddd(((()))) returns a file descriptor that you can use to construct the
- arguments to a sssseeeelllleeeecccctttt((((2222)))) or ppppoooollllllll((((2222)))) call. These calls are used when you
- want to give up control of the CPU (letting other processes use the CPU)
- until the device fills/empties the audio port buffer past the fillpoint.
- At that time, sssseeeelllleeeecccctttt((((2222)))) and ppppoooollllllll((((2222)))) return, and your code can continue
- processing the audio ports. If the device has already filled/emptied the
- audio port buffer past the fillpoint when you make the call, control
- returns to your program immediately.
-
- When using sssseeeelllleeeecccctttt((((2222)))), an input port's file descriptor is used in a read
- fdset and an output port's file descriptor is used in a write fdset.
-
- When using ppppoooollllllll((((2222)))), an input port's file descriptor is used with the
- POLLIN event flag and an output port's file descriptor is used with a
- POLLOUT event flag.
-
- Several AL functions implicitly change the current fillpoint value.
- Therefore, AAAALLLLsssseeeettttffffiiiillllllllppppooooiiiinnnntttt((((3333ddddmmmm)))) must be called immediately before a
- sssseeeelllleeeecccctttt((((2222)))) or ppppoooollllllll((((2222)))) call which uses an audio file descriptor.
-
- AAAALLLLggggeeeettttffffdddd((((3333ddddmmmm)))) can fail for the following reason:
-
- AAAALLLL____BBBBAAAADDDD____PPPPOOOORRRRTTTT _p_o_r_t is either invalid or null.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, AAAALLLLggggeeeettttffffdddd((((3333ddddmmmm)))) returns a valid file descriptor.
- Otherwise, AAAALLLLggggeeeettttffffdddd((((3333ddddmmmm)))) returns -1 and sets an error number which can be
- retrieved with oooosssseeeerrrrrrrroooorrrr((((3333CCCC)))).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ALsetfillpoint(3dm), ALgetfillpoint(3dm), ALopenport(3dm), select(2),
- poll(2), oserror(3C)
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-